package cn.itcast.mapper;

import cn.itcast.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author: peterChen
 * @date: 2019/8/14 20:02
 * @description: TODO
 * @version: 1.0
 */
public interface OrderMapper {
    public List<Order> findByCondition(Order order);

    public void add(Order order);

    public Map findById(@Param("id") Integer id);

    public Integer findOrderCountAfterDate(@Param("date")String date);

    public Integer findVisitCountAfterDate(@Param("date")String date);

    public Integer findOrderCountByDate(@Param("date")String date);

    public Integer findVisitCountByDate(@Param("date")String date);

    public List<Map<String, Object>> findHotSetmeal();
}
